﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BaiduFanyi
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            try
            {
                //Type type = Type.GetType(ConfigurationManager.AppSettings["ShowForm"])
                Type type = Type.GetType($"BaiduFanyi.{ConfigurationManager.AppSettings["ShowForm"]}");
                Form frm = Activator.CreateInstance(type) as Form;
                Application.Run(frm);
            }
            catch (Exception e)
            {
                Application.Run(new TranslateForm());
            }
          
        }
    }
}
